<?php
    drupal_add_css('css/style.anhmantk.css');
    drupal_add_js('js/jquery-1.7.1.min.js');
    drupal_add_js('js/loadsubcate.js');
?>
<script type="text/javascript">
    function redirect_form() {
        url = '<?php echo base_path() ?>backend/add/' + $('#cate_id').val();
        window.location = url;
        return false;
    }
</script>
<form method="POST" action="<?php print url('backend/add') ?>" enctype="multipart/form-data">
<input type="button" id="dangsp" value="Dang San Pham" disabled="true" onclick="return redirect_form();" />

<div id="showcate" class="form-item">    
    <span id="loadding"></span>
    <div class="clean"></div>        
    <div class="combo">
        <h6 class="caption_combo">Danh mục gốc</h6>
        <select class="showsub" id="showsub_0" level="0" size="15">                            
            <?php
            foreach($data['list_danhmuc'] as $obj) {
                echo '<option value="' . hexID($obj->cate_id) . '">' . $obj->cate_name . '</option>';
            }
            ?>
        </select>
    </div>                    
</div>
<div class="clean"></div>
<input type="hidden" name="cate_id" id="cate_id" value="" readonly="true" />
<input type="hidden" id="action" value="sanpham" readonly="true" /><!-- raovat, hoidap -->
</form>